#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int i = 0;
	scanf("%d", &i);
	int count = 0;
	do
	{
		i = i / 10;
		count++;
	} while (i);
	printf("%d", count);
	return 0;
}